<?php

namespace App\Repositories\Contract;

use App\Models\Project;
use Prettus\Repository\Contracts\RepositoryCriteriaInterface;
use Prettus\Repository\Contracts\RepositoryInterface;

/**
 * Interface ProjectRepository.
 *
 * @package namespace App\Repositories\Contract;
 */
interface ProjectRepository extends RepositoryInterface, RepositoryCriteriaInterface
{

    /**
     * 复制
     * @param Project $project
     * @param int $userId
     * @return Project
     */
    function copy(Project $project, int $userId) : Project;
}
